\documentclass[a4]{report}

\usepackage[english]{babel}
\usepackage[utf8]{inputenc} % Use this if the file is encoded with utf-8
\usepackage{times}
\usepackage[T1]{fontenc}
\usepackage{tikz} % Create graphics in Latex


\input{basestation.tex}

\begin{document}

\usetikzlibrary{positioning}

\begin{tikzpicture}[every node/.append style={scale=1}]
  \draw[help lines] (0,-3) grid (8,6);
  
  % Coordinate system origin
  \path (0,0) coordinate (origin);
  \draw[fill=red] (origin) circle (1pt);
  \draw[gray!40!white] (origin) node[rotate=45] {origin};

  % xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  % xxxxxxxxxxxxxxx Test the BaseStation Shape xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  % xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  \tikzset{BS style/.style={
      draw, 
      minimum width=1cm, 
      minimum height=4cm,
      fill=gray, 
      inner sep=0,
      outer sep=0,
    }}

  \path (2,1.5) coordinate (BS1Pos);
  \path (4,1.5) coordinate (BS2Pos);
  
  \draw (BS1Pos) node[BS style,dashed,gray,fill=none] {};
  \draw (BS2Pos) node[BS style,dashed,gray,fill=none] {};

  \draw (BS1Pos) node[BaseStation, BS style] (mynode) {\pgftypesetversion};
  \draw (BS2Pos) node[BaseStationSimple, BS style] (mynode2) {\pgftypesetversion};

  \foreach \ancora in {
    north,
    east,
    south,
    west,
    north east,
    north west,
    south east,
    south west,
    % base,
    text,
    center} % text is the same as the center anchor
  {
    \draw[fill=green] (mynode.\ancora) circle (0.8pt) node[scale=0.8,red!50!black,rotate=45] {\tiny{\ancora}};
    \draw[fill=green] (mynode2.\ancora) circle (0.8pt) node[scale=0.8,red!50!black,rotate=45] {\tiny{\ancora}};
  }

  \draw[fill=yellow] (mynode.60) node[circle,draw,scale=0.2,fill=yellow] {60};
  \draw[fill=yellow] (mynode.250) node[circle,draw,scale=0.2,fill=yellow] {250};
  \draw[fill=yellow] (mynode2.60) node[circle,draw,scale=0.2,fill=yellow] {60};
  \draw[fill=yellow] (mynode2.250) node[circle,draw,scale=0.2,fill=yellow] {250};
  % xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  % xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


  % xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  % xxxxxxxxxxxxxxx Test The UserTerminal Shape xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  % xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  \tikzset{UE Style/.style={
      draw,
      fill=gray,
      minimum width=1.2cm, 
      minimum height=2cm}}

  \path (6,1.5) coordinate (UE1Pos);

  \draw (UE1Pos) node[UserTerminal,UE Style, button fill color=gray!40] (myterminal) {UE};

  \foreach \ancora in {
    north,
    east,
    south,
    west,
    north east,
    north west,
    south east,
    south west,
    screen,
    button,
    % base,
    text,  % text is the same as the screen anchor
    center}
  {
    \draw[fill=green] (myterminal.\ancora) circle (0.8pt) node[scale=0.8,red!50!black,rotate=45] {\tiny{\ancora}};
  }

  \draw[fill=yellow] (myterminal.60) node[circle,draw,scale=0.2,fill=yellow] {60};
  \draw[fill=yellow] (myterminal.250) node[circle,draw,scale=0.2,fill=yellow] {250};
\end{tikzpicture}

\end{document}

% Used by Emacs
%%% Local Variables: 
%%% mode: latex
%%% TeX-PDF-mode: t
%%% TeX-master: t
%%% End:
